
package org.bookstore.service.impl;
import java.util.List;
import org.bookstore.dao.IBookDAO;
import org.bookstore.model.Book;
import org.bookstore.service.IBookService;
public class BookService implements IBookService {
		protected IBookDAO bookDAO;
	public void setBookDAO(IBookDAO bookDAO) {
		this.bookDAO = bookDAO;
	}
     public List getNewBook(){
    		return bookDAO.getNewBook();
     }
     public List getBookByCatalogidPaging(Integer catalogid,int currentPage,int pageSize){
 		return bookDAO.getBookByCatalogidPaging(catalogid, currentPage, pageSize);
 	}
 public int getTotalByCatalog(Integer catalogid){
 		return bookDAO.getTotalByCatalog(catalogid);
 	}
 public List getRequiredBookByName(String name) {
		return bookDAO.getRequiredBookByName(name);
	}
 public Book getBookById(Integer bookid){
		return bookDAO.getBookById(bookid);
	}

}
